System and method for secure authentication of a &#34;smart&#34; battery by a host

ABSTRACT

Systems and methods for providing a battery module  110  with secure identity information and authentication of the identity of the battery  110  by a host  120.  In one embodiment, the system for providing a battery module with secure identity information includes: (1) a tamper resistant processing environment  200  located within the battery module  110  and (2) a key generator configured to generate a key based on an identity of the battery module  110  and cause the key to be stored within the tamper resistant processing environment  200.

This application is a divisional of prior application Ser. No.13/546,529, filed Jul. 11, 2012, currently pending;

Which was a divisional of prior application Ser. No. 13/240,202, filedSep. 22, 2011, now U.S. Pat. No. 8,245,041, granted Aug. 14, 2012;

Which was a divisional of prior application Ser. No. 12/564,590, filedSep. 22, 2009, now U.S. Pat. No. 8,051,285, granted Nov. 1, 2011;

Which was a divisional of prior application Ser. No. 11/074,611, filedMar. 8, 2005, now U.S. Pat. No. 7,613,924, granted Nov. 3, 2009.

TECHNICAL FIELD OF THE INVENTION

The present invention is directed, in general, to “smart” batteries and,more specifically, to a system and method for secure authentication of asmart battery by a host.

BACKGROUND OF THE INVENTION

Modern battery-operated devices are powerful and vital tools for bothbusiness and personal use. Hosts include wireless communication devicessuch as cell telephones and computing devices such as portablecomputers, personal digital assistants (PDAs) and hybridcomputer/communication devices.

Early hosts used nickel-cadmium (NiCd) batteries. However, thosebatteries were subject to memory effects and toxicity of the cadmiumcomponents. Nickel-metal-hydride (NiMH) batteries do not suffer from amemory effect, and are more environmentally benign, but also suffer fromshortcomings, including high self-discharge rates and limited servicelife.

Several problems are common to both battery types. First, battery lifeis dependent on appropriate charge-discharge profiles. In the extreme,an excessive rate of charge or discharge can result in battery leakageor explosion, posing a risk to the battery-powered device and to thepublic. Second, without some form of authentication, the battery can beeasily cloned, allowing substandard battery designs to be used, andrisking the original equipment manufacturer's revenue stream from lostbattery sales.

The development of “smart” battery technology provides a partialsolution to these deficiencies. Batteries using this technology includecircuitry to communicate state-of-charge or state-of-health informationto the user, charger or host device. For example, the battery mayilluminate a number of LEDs to indicate the state-of-charge, or providethis information via a digitized data stream to the host device.

Two protocols for the host-battery interface are known: the single wirebus and the “SMBus.” The single wire bus is comparatively rudimentary,and is used to communicate the battery code and basic operatingparameters. The SMBus, by comparison, is more sophisticated, and isintended to move the charge control from the charger to the battery. Inthis way, a universal charger can be used to charge batteries withdifferent chemistries. The SMBus system stores more detailed informationabout the battery, including battery ID number and type, serial numberand date of manufacture.

Smart battery technology provides a means to authenticate the battery tothe charger or battery-powered device. Identification of the battery tothe charger allows for the use of a generic charger that uses differentcharging algorithms for different battery chemistries. For example, thisfeature allows for the use of a discharge cycle that would beappropriate for NiCd batteries but not for NiMH batteries, and viceversa. Authentication also provides a means for the battery-powereddevice to accept or reject a particular battery, addressing the concernspreviously set forth.

A deficiency of the current authentication schemes, however, is therelative ease with which a clone manufacturer can copy smart batterycircuitry. Access to cryptographic keys used for authentication ispossible by readily available reverse engineering techniques, such asdeprogramming of the memory module of the authentication module. What isneeded in the art is a more secure way to provide authentication forbattery modules, such that cloning by bulk theft is frustrated andpreferably infeasible.

SUMMARY OF THE INVENTION

To address the above-described deficiencies of the prior art, thepresent invention provides systems and methods for providing a batterymodule with secure identity information and secure identityauthentication between the battery module and a host.

In one aspect, the present invention provides a system for providing abattery module with secure identity information. In one embodiment, thesystem includes: (1) a tamper resistant processing environment locatedwithin the battery module and (2) an identity key generator configuredto generate an identity key for each battery module and cause theidentity key to be stored within the tamper resistant processingenvironment.

In another aspect, the present invention provides a method of providinga battery module with secure identity information. In one embodiment,the method includes: (1) locating a tamper resistant processingenvironment within the battery module, (2) generating an identity keyfor the battery module and (3) causing the identity key to be storedwithin the tamper resistant processing environment.

In yet another aspect, the present invention provides a system forsecure authentication of a battery module by a host. In one embodiment,the system includes: (1) a challenge receiver operable within thebattery module and configured to receive a challenge from the host and(2) a response generator operable within the battery module andconfigured to generate a response based on an identity key stored withina tamper resistant processing environment of the battery module.

In still another aspect, the present invention provides a method ofsecure authentication of a battery module by a host. In one embodiment,the method includes: (1) receiving a challenge from the host and (2)generating a response based on an identity key stored within a tamperresistant processing environment of the battery module.

The foregoing has outlined preferred and alternative features of thepresent invention so that those skilled in the art may better understandthe detailed description of the invention that follows. Additionalfeatures of the invention will be described hereinafter that form thesubject of the claims of the invention. Those skilled in the art shouldappreciate that they can readily use the disclosed conception andspecific embodiment as a basis for designing or modifying otherstructures for carrying out the same purposes of the present invention.Those skilled in the art should also realize that such equivalentconstructions do not depart from the spirit and scope of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the present invention, reference isnow made to the following descriptions taken in conjunction with theaccompanying drawings, in which:

FIG. 1 illustrates a schematic diagram showing a smart battery coupledto a battery-powered device;

FIG. 2 illustrates a block diagram of one embodiment of asystem-on-a-chip (SoC) for providing a battery module with secureidentity information constructed according to the principles of thepresent invention;

FIG. 3 illustrates a smart battery module coupled to a non-volatilememory programmer, which in turn is coupled to an identity keygenerator;

FIG. 4 illustrates a flow diagram of one embodiment of a method ofauthentication of the identity of a battery by a host carried outaccording to the principles of the present invention;

FIG. 5 illustrates a flow diagram of an alternate embodiment of a methodof authentication of the identity of a battery by a host, employing aroot key on the host, carried out according to the principles of thepresent invention;

FIG. 6 illustrates a flow diagram of another alternate embodiment of amethod of authentication of the identity of a battery by a host,employing a root key table and root key index, carried out according tothe principles of the present invention;

FIG. 7 illustrates a flow diagram of another alternate embodiment of amethod of authentication of the identity of a battery by a host,employing broadcast encryption, carried out according to the principlesof the present invention; and

FIG. 8 illustrates a flow diagram of another alternate embodiment of amethod of authentication of the identity of a battery by a host,employing public-private key verification of the identity information,carried out according to the principles of the present invention.

DETAILED DESCRIPTION OF THE DRAWINGS

Referring first to FIG. 1, a schematic diagram is shown of oneembodiment of a battery module, termed a “smart battery” 110, coupled toa battery-powered device (“host”) 120. A host 120 may be a cell phone orother portable consumer electronic device, but the invention is notlimited to such applications. A processor 130 resides within the host120, and may be designed into the host 120 to support its primaryintended function, or may be designed into the host 120 specifically tosupport battery authentication. Additionally, the processor 130 may bean Open Multimedia Applications Platform (OMAP™) processor, commerciallyavailable from Texas Instruments, Inc., of Dallas, Tex. Asystem-on-a-chip (SoC) 140 resides within the smart battery 110. The SoC140 is discussed below in detail, and embodies the functional blocksnecessary to support cooperative authentication with the host 120. Aconventional interface 150 couples the processor 130 with the SoC 140,with data transmitted between the processor 130 and the SoC 140 over adata bus 160 and power coupled through a power bus 170.

Turning now to FIG. 2, a block diagram of one embodiment of SoC 140 isshown. The SoC 140 has a tamper resistant processing environment (TRPE)200, and a public environment including functional elements outside theTRPE. Those skilled in the pertinent art are aware that a TRPE is, ingeneral, designed to perform according to the following objectives: (1)programs running within the TRPE are either embedded in tamper resistantnon-volatile memory or, if running in private RAM, authenticated andtherefore free of unexpected code before being admitted to run withinthe TRPE, (2) programs and data within the TRPE are free from unwantedinterference from outside the TRPE and (3) programs and data within theTRPE cannot be read from outside the TRPE. Components within the TRPEare isolated from user-accessible memory, buses or external pins to meetthe aforementioned objectives. For this reason and as will be describedin the following description, TRPEs are often provided with their ownisolated, secure memory and buses. In the illustrated embodiment, theTRPE 200 serves to protect secret and private keys used to identify thesmart battery 110.

The SoC 140 includes a processor 210, public non-volatile memory 220,public random-access memory (RAM) 230, private non-volatile memory 240and private RAM 250. One or more of these memory elements may not beneeded in certain embodiments, described below. The public and privatenon-volatile memories 220 and 240 may be flash memory, EEPROM, or apresent or future embodiment of electrically rewritable nonvolatilememory. The private non-volatile memory 240 and the private RAM 250 arefully contained within the TRPE 200, while processor 210 functions bothwithin and outside the TRPE 200. Within the TRPE 200, data are passedsecurely among the functional blocks of the TRPE 200 via a private bus280. Thus, the contents of memory within the TRPE 200, and datatransmitted among the functional blocks of the TRPE 200 are protectedfrom external manipulation and examination.

The public area of the SoC 140 comprises all functional elements thatare not within the TRPE 200. These elements include the conventionalinterface 150, the public non-volatile memory 220 and the public RAM230, as well as the processor 210. Within the public area, thesefunctional elements are coupled via a public bus 290.

Turning now to FIG. 3, illustrated is one embodiment of a system forproviding a smart battery 110 with an identity key associated with thesmart battery 110 according to the principles of the invention. Anon-volatile memory programmer 310 performs the function of programmingthe smart battery 110. Those skilled in the pertinent art understandthat the non-volatile memory programmer 310 is responsible for providingan image that is written into non-volatile memory (public non-volatilememory 220 and private non-volatile memory 240 in FIG. 2) within thesmart battery 110 via a programming link 330. In the broadest usage, theimage may contain applications that are to execute within the device ofwhich the non-volatile memory is a part. In the specific context of thepresent invention, data representing an identity of the smart battery110 will be transmitted to at least the private non-volatile memory 240,and in some embodiments, also the public non-volatile memory 220. Thecontent of this transmission depends on the embodiment of theauthentication algorithm, as will be described fully below.

In FIG. 3, the non-volatile memory programmer 310 is coupled to anidentity key generator 320. The identity key generator 320 is shownexternally coupled to the non-volatile memory programmer 310, but couldalso be contained within the non-volatile memory programmer 310. Theidentity key generator 320 is configured to generate a cryptographic keyto be associated with the smart battery 110, and to transmit this key,which may be a function of the identity of the smart battery 110, to thenon-volatile memory programmer 310. The non-volatile memory programmer310 then creates a non-volatile memory image and causes the image to bestored in the private non-volatile memory 240, and if necessary, thepublic non-volatile memory 220. In an exemplary embodiment, the identityof the smart battery 110 is a unique manufacturing serial number of thesmart battery 110, but it will be immediately apparent to those skilledin the art that other identities of the smart battery 110 could be used,such as lot number, date of manufacture, or design revision number. Moregenerally, the identity key is a number assigned to the smart battery110 and, in a preferred embodiment, is a number that is at leastpseudorandom that cannot be readily derived from any other publiclyknown information associated with the smart battery 110.

After one or both non-volatile memories 220, 240 are written, asnecessary, the smart battery 110 is enabled to authenticate itself to ahost device that has been programmed to accept the smart battery 110.Several exemplary embodiments of authentication algorithms follow.

Turning now to FIG. 4, illustrated is a flow diagram 400 of oneembodiment of a method of authentication of the identity of a batterycarried out according to the principles of the invention. In thisembodiment, the smart battery 110 and host 120 are programmed with ashared identity key representing a potentially large number ofbatteries. For example, the shared identity key may correspond to abattery model number, and could be identical for all batteries of aparticular model. Non-volatile memory programmer 310 causes the identitykey to be stored in private non-volatile memory 240, where it is noteasily accessible to an “attacker,” i.e., a person intending to accessthe identity for the purpose of copying the smart battery 110. The sameidentity key is also stored on the host by a means that makes itdifficult to discover, such as embedding it in binary code, or storingit in a secure storage location protected by a secure executionenvironment or TRPE.

The flow diagram 400 is divided between those steps performed by thesmart battery 110, and those performed by the host 120. In a step 410,the host 120 retrieves the locally stored identity key, and in a step420 the smart battery 110 retrieves the identity key from privatenon-volatile memory 240. In a step 430, the host 120 generates apseudorandom challenge that is used internally to the host 120 and isalso communicated to the smart battery 110. Once received by the smartbattery 110, the challenge is combined in a step 440 with the identitykey using a message integrity check algorithm inside the TRPE togenerate a first response.

Those skilled in the pertinent art will understand that a messageintegrity check algorithm is a method of creating a message digest of adigital message that for all practical purposes is unique to thatmessage, and that there are numerous algorithms that may be employed totest the integrity of the identity key. In one embodiment of theinvention, the message integrity check algorithm is a cyclic redundancychecking algorithm (CRC), as described in IEEE Std 802.3-2000, usingpolynomial coefficients and an initial CRC value stored as part of theidentity key. In an alternate embodiment, the message integrity checkalgorithm is a hashed message authentication code algorithm (HMAC) usinga secure hash algorithm (SHA), as described in Federal InformationProcessing Publication (FIPS PUB) 180-1. Any prior or future suitableintegrity check algorithm used to generate a signature of a digitalmessage is within the scope of the present invention.

Continuing with FIG. 4, In a step 450, the processor 130 in the host 120is used to process the challenge, again using the aforementioned messageintegrity check algorithm and the copy of the identity key stored in thehost, thereby generating a second response. In a step 460, the firstresponse is communicated from the smart battery 110 to the host 120. Ina step 470, the processor 130 compares the first and second responses.If the comparison results a match, the smart battery 110 isauthenticated, and the processor 130 enables normal operation of thehost 120 in a step 480. If the comparison results in a mismatch, theprocessor 130 disables operation of the host 120.

In the previous and following flow diagrams, the flow of steps is notnecessarily in the order recited. Temporal ordering of steps is onlynecessary to the extent that one step inherently depends on the resultof a previous step. Hence, for example, a series of steps may beexecuted in parallel such as steps 410-450 in the host 120 and steps420-440-460 in the smart battery 110.

The embodiment shown in FIG. 4 has the advantage that it is relativelysimple to implement, requiring minimal management of identity keys.However, a potential disadvantage of the embodiment is that if theidentity key from a single battery is acquired by an attacker, then anunlimited number of copies of that battery can be produced with the sameidentity key, and the host will have no way to distinguish an originalbattery from a copy. Furthermore, if, in an effort to invalidate thecloned battery, the compromised identity key is black-listed, then alarge number of valid devices sharing the same identity key will also beinvalidated.

To increase security against an attack, a second embodiment of theinvention employs an encrypted identity key of the smart battery 110. Inthis embodiment, identity key generator 320 is used to encrypt theidentity key of the smart battery 110 using a root key to provideadditional security. Additionally, each smart battery 110 is programmedwith its own unique identity. An encryption algorithm such as tripleData Encryption Standard, or “3DES,” is used to encrypt the identitykey. Those skilled in the pertinent art are aware that 3DES is a dataencryption standard based on DES. Moreover, an Advanced EncryptionStandard has been developed to eventually supersede 3DES. Any suchcurrently existing or future digital data encryption algorithm is withinthe scope of the invention.

The non-volatile memory programmer 310 causes the encrypted identity keyto be stored in the public non-volatile memory 220, and the unencryptedidentity key to be stored in the private non-volatile memory 240 duringmanufacture of the smart battery 110. The root key is also stored in thehost 120, in a manner that makes it difficult for an attacker to examinethe root key.

Operation of this embodiment is illustrated in FIG. 5, in which flowdiagram 500 shows a method of authentication of the identity of abattery by a host, employing a root key on the host, carried outaccording to the principles of the present invention. Authentication ofthe smart battery 110 begins with a step 510, in which the encryptedidentity key 520 stored in smart battery 110 is communicated to the host120. Those skilled in the art will recognize that the encrypted identitykey could either be read by the host 120 or transmitted by the battery110. In a step 530, the host 120 retrieves the locally stored root key540. In a step 550, the host decrypts the encrypted identity key withthe root key to extract the identity key. To reduce the chance ofillicit intercept of the root key and decoded battery identity, thesesteps performed by the host may be executed in a secure execution mode,such as the secure mode available in OMAP™. devices. As in the previousembodiment and flow diagram, the smart battery 110 retrieves theunencrypted identity key from private non-volatile memory 240 in step420. The authentication algorithm then continues in a manner analogousto the steps beginning with step 430 in FIG. 4, described previously.

In spite of the additional security provided by this embodiment, anattacker can still make unauthorized copies of a smart battery 110 bycopying the public non-volatile 220 and private non-volatile 240memories of the SoC 140. In this event, a particular battery identitycan be programmed into future host devices to exclude, or blacklist,batteries with compromised identity.

In another alternate embodiment of authentication of battery and a host,increased flexibility of assigning an identity to smart battery 110 canbe accomplished by use of a root key table and root key index. In FIG.6, illustrated is a flow diagram 600 of such an embodiment, carried outaccording to the principles of the present invention. The flow diagram600 calls for multiple root keys to be stored on the host 120 in a rootkey table, and a root key index to be provided by the smart battery 110to gain access to a particular root key.

Use of the root key table provides additional flexibility, such asassigning root keys to different authorized battery manufactures.Security of the identity key is accomplished as in the previousembodiment, by encrypting the identity key communicated from the smartbattery 110 to the host 120. The root key index and encrypted identitykey are stored into the public flash 220, and the unencrypted identitykey is programmed into the secure flash 240 by the non-volatile memoryprogrammer 310.

In this embodiment, the authentication of the smart battery 110 beginswith a step 610, in which the root key index 615 is communicated fromthe smart battery 110 to the host 120. As before, this datum may be readby host 120 or transmitted by smart battery 110. In a step 620, the host120 selects a root key from a locally stored root key table based on theroot key index received from the smart battery 110. Authenticationcontinues as previously described, beginning with communication of theencrypted identity key from the smart battery 110 to the host 120 instep 510.

Additional flexibility in management of battery identities may be addedby the use of a root key management block stored on smart battery 110.In a method known as broadcast encryption, multiple root keys arecombined and encrypted using an identity key unique to the smart battery110 to produce a root key management block, which is stored in thepublic non-volatile memory 220 during the manufacturing process. Theunique key is also stored, in unencrypted form, in private non-volatilememory 240. The use of broadcast encryption provides for the use ofmultiple root keys and for the revocation of a root key that becomescompromised. If desired, each host could be programmed with its own rootkey as well, providing significantly increased security relative to theprevious embodiments.

In FIG. 7, a flow diagram 700 illustrates the operation of thisembodiment carried out according to the principles of the presentinvention. The authentication of the smart battery 110 begins with astep 710, in which root key management block 715 is communicated fromsmart battery 110 to the host 120. As in previous embodiments, the rootkey management block may be read by host 120 or transmitted by the smartbattery 110. In step 520, the host retrieves locally stored root key540. In a step 720, the host decrypts the root key management block 715using the root key to extract the identity key of the smart battery 110.The method then continues with steps 420 and 450 as previouslydescribed.

In a final embodiment shown in FIG. 8, additional security is providedby digitally signing the encrypted battery identity key with a privatekey and causing the signed identity key to be stored in the publicnon-volatile memory 220, while causing the unencrypted identity key tobe stored in the private non-volatile memory 240. An algorithm such asthe RSA algorithm may be used to sign the encrypted battery identitykey. The RSA algorithm is one implementation of the general concept ofpublic key cryptography, which allows a receiver of a communicationsigned with a private key to verify the validity of the communicationusing a public key. Use of such private-public key verification providesan additional layer of security to the authentication of the identity ofthe smart battery 110. For example, if public-private key verificationwere added to the embodiments described in the flow diagrams 500, 600,700, even if an attacker were to discover the root key on the host, hecould not reproduce valid batteries, since the attacker does not havethe private key used to sign the encrypted identity at the factory.

The method of this embodiment is shown in a flow diagram 800 in FIG. 8,which begins with a step 810, in which the signed, encrypted identity ofthe smart battery 110 is communicated to host 120, either bytransmission by smart battery 110 or by reading of the identity by host120. In a step 820, the host retrieves a locally stored public key. In astep 830, the encrypted, signed identity key is verified using the RSAalgorithm or other suitable method corresponding to the signingalgorithm. The result of the verification is the encrypted identity ofthe smart battery 110, which can then be used as described previously inFIG. 5 or 6, step 530, or FIG. 7, step 720 as previously described.

Although the present invention has been described in detail, thoseskilled in the art should understand that they could make variouschanges, substitutions and alterations herein without departing from thespirit and scope of the invention in its broadest form.

What is claimed is:
 1. A battery comprising: A. an interface including apower bus and a data bus; B. an integrated circuit including: i. apublic bus connected with the data bus; ii. a public non-volatile memoryconnected with the public bus; iii. a public RAM connected with thepublic bus; iv. a private bus separate from the data bus; v. processorcircuitry separately connected with the public bus and the private bus;vi. a private non-volatile memory connected only with the private bus;and vii. a private RAM connected only with the private bus; and C. inwhich the public non-volatile memory contains a root key index and anencrypted identity key, the private non-volatile memory contains anun-encrypted identity key, and in which the processor circuitry includescircuits to combine the unencrypted identity key with challenge datareceived over the public bus, and to send signed challenge data over thepublic bus.